package com.qst.Serviceimpl;

import com.qst.Service.AdminUserService;
import com.qst.Vo.AdminUserVo;
import com.qst.dao.AdminUserMapper;
import com.qst.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

/**
 * @packageName:com.qst.Serviceimpl
 * @className:AdminUserService
 * @Description:
 * @author:zhangyu
 * @date 2021/6/22 19:02
 **/

@Service
public class AdminUserServiceimpl implements AdminUserService {

    @Autowired
    AdminUserMapper adminUserMapper;

    @Override
    public List<User> adminfinduser(AdminUserVo adminUserVo) {
        return adminUserMapper.adminfinduser(adminUserVo);
    }

    @Override
    public int updateadminuser(User user) {
        return adminUserMapper.updateadminuser(user);
    }

    @Override
    public int deleteadminuser(int id) {
        return adminUserMapper.deleteadminuser(id);
    }

    @Override
    public int addadminuser(User user) {
        return adminUserMapper.addadminuser(user);
    }
}
